package com.qfedu.meidijiaju.entity;

import java.io.Serializable;

public class ResponseData<T> implements Serializable {

    /*
    *
    * code  msg  count  data
    *
    * */

    // 0 代表成功   其他1 2 代表失败
    private int code;

    private String msg;

    private int count;

   // List<Student>  可以替换T 类型
    private T data;

    @Override
    public String toString() {
        return "ResponseData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
